<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/{$page_theme | default: 'default'}/easyui.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/style/my.css">
    
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/javascript/my.js"></script>
</head> 
<body onpageshow="resetPagination('dg')">
    {datagrid id="dg" datasource="/pas/PermService/findByRoleId.do?role_id=`$Request.role_id`" view="t_role_perm.view" }
    {form id="dlg" view="t_role_perm.create" }
    <script>
    var role_id='{$Request.role_id}';
    var role_name='{$Request.role_name}';
    {literal}
    action_prehandlers.createOne=function(){
    	return {"role_id":role_id,"role_name":role_name}
    }
    function removeRolePerm() {
        handleOne("/pas/RolePermService/remove.do?role_id="+role_id, "perm_id")
    }
    {/literal}
    </script>
</body>
</html>